package com.run.gulimall.ware.dao;

import com.run.gulimall.ware.entity.WareSkuEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 商品库存
 * 
 * @author run
 * @email run@gmail.com
 * @date 2021-08-17 21:33:39
 */
@Mapper
public interface WareSkuDao extends BaseMapper<WareSkuEntity> {

    void addStock(@Param("skuId") Long skuId,@Param("wareId") Long wareId, @Param("skuNum")Integer skuNum);

    Boolean getSkuStock(@Param("id") Long id);
}
